﻿@model WEBBANGDIA.Models.BangDia

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>BangDia</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaBD)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaBD)
            @Html.ValidationMessageFor(model => model.MaBD)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TenBD)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenBD)
            @Html.ValidationMessageFor(model => model.TenBD)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaLoai, "LoaiDia")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MaLoai", String.Empty)
            @Html.ValidationMessageFor(model => model.MaLoai)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaHSX, "HangSanXuat")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MaHSX", String.Empty)
            @Html.ValidationMessageFor(model => model.MaHSX)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaDM, "DanhMuc")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MaDM", String.Empty)
            @Html.ValidationMessageFor(model => model.MaDM)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaCL, "ChatLuong")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MaCL", String.Empty)
            @Html.ValidationMessageFor(model => model.MaCL)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TieuDe)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TieuDe)
            @Html.ValidationMessageFor(model => model.TieuDe)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoiDung)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoiDung)
            @Html.ValidationMessageFor(model => model.NoiDung)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AnhDaiDien)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AnhDaiDien)
            @Html.ValidationMessageFor(model => model.AnhDaiDien)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DungLuongTong)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DungLuongTong)
            @Html.ValidationMessageFor(model => model.DungLuongTong)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Gia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Gia)
            @Html.ValidationMessageFor(model => model.Gia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.GiaKM)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GiaKM)
            @Html.ValidationMessageFor(model => model.GiaKM)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SoLuongBoDia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SoLuongBoDia)
            @Html.ValidationMessageFor(model => model.SoLuongBoDia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SoLuongHienCon)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SoLuongHienCon)
            @Html.ValidationMessageFor(model => model.SoLuongHienCon)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrangThai)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TrangThai)
            @Html.ValidationMessageFor(model => model.TrangThai)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NgayTao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NgayTao)
            @Html.ValidationMessageFor(model => model.NgayTao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.An)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.An)
            @Html.ValidationMessageFor(model => model.An)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NgayCapNhat)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NgayCapNhat)
            @Html.ValidationMessageFor(model => model.NgayCapNhat)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
